<template>
  <!-- 页面布局 -->
  <el-container class="layout-container">
    <!-- 头部区域 -->
    <el-header>
      <!-- logo区域 -->
      <div>
        <img src="../assets/images/jisufupay.png" height="48" alt="" />
      </div>
      <!-- 账户显示退出 -->
      <el-button class="logout" type="info" @click="logout">退出</el-button>
    </el-header>
    <!-- 页面主体区域 -->
    <el-container>
      <!-- 侧边栏 -->
      <el-aside width="200px">
        <!-- 侧边栏菜单 -->
        <el-menu
          background-color="#333744"
          text-color="#fff"
          active-text-color="#ffd04b"
        >
          <!-- 一级菜单 -->
          <el-submenu index="1">
            <!-- 一级菜单模板 -->
            <template slot="title">
              <!-- 图标 -->
              <i class="el-icon-location"></i>
              <!-- 文本 -->
              <span>导航一</span>
            </template>
            <!-- 二级子菜单 -->
            <el-menu-item index="1-4-1">
              <!-- 二级菜单模板 -->
              <template slot="title">
                <!-- 图标 -->
                <i class="el-icon-location"></i>
                <!-- 文本 -->
                <span>子菜单一</span>
              </template></el-menu-item
            ></el-submenu
          ></el-menu
        ></el-aside
      ></el-container
    ></el-container
  >
</template>
 </el-menu-item>
 </el-submenu>

</el-menu>
</el-aside>
<!-- 主体结构 -->
<el-main>Main</el-main>
</el-container>
 </el-container>
</template>
<script>
export default {
  methods: {
    logout() {
      window.sessionStorage.clear();
      this.$router.push("/login");
    },
  },
};
</script>
<style>
.layout-container {
  height: 100%;
}
.el-header {
  background-color: #007d71;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.el-aside {
  background-color: #222d32;
}
.el-main {
  background-color: #f5f5f5;
}
</style>